package com.imooc.course.service.impl;

import com.imooc.course.dao.CourseListMapper;
import com.imooc.course.entity.Course;
import com.imooc.course.service.CourseListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: spring-cloud-course
 * @description:
 * @author: CY
 * @create: 2021-06-28 20:21
 **/
@Service
public class CourseListServiceImpl implements CourseListService {
    @Autowired
    CourseListMapper courseListMapper;

    @Override
    public List<Course> getCourseList() {
        return courseListMapper.findValidCourses();
    }
}
